<?php

namespace App\Http\Controllers\DesignPattern\Creational\SimpleFactory;

use App\Model\DesignPattern\Creational\SimpleFactory\WoodenDoor;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class WoodenDoorController extends Controller
{
    public function makeDoor($width, $height)
    {
        $res = new WoodenDoor($width, $height);
        return $res->getWidth();
    }
}
